package com.jnu.keepaccounts.data;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

public class XuanKa implements Parcelable ,Serializable{
    private String name;
    private int flag;
    private int pictureId;
    public XuanKa(String name,int flag,int pictureId){
        this.name = name;
        this.flag = flag;
        this.pictureId = pictureId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getPictureId() {
        return pictureId;
    }

    public void setPictureId(int pictureId) {
        this.pictureId = pictureId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeInt(flag);
        dest.writeInt(pictureId);
    }
    public static final Parcelable.Creator<XuanKa> CREATOR = new Creator<XuanKa>() {
        @Override
        public XuanKa createFromParcel(Parcel source) {
            XuanKa xuanKa = new XuanKa(source.readString(),source.readInt(),source.readInt());
            return xuanKa;
        }

        @Override
        public XuanKa[] newArray(int size) {
            return new XuanKa[size];
        }
    };
}
